<template>
	<div class="brand-audits">
		<top-bar :is-aduit="isAduit"></top-bar>
		<user-list :is-aduit="isAduit"></user-list>
	</div>
</template>

<script>
	import UserList from './components/userList'
	import TopBar from './components/topBar'
	import { mapGetters, mapActions } from 'vuex'

	export default {
		components: {
			UserList,
			TopBar
		},

		data: () => ({
			isAduit: true,
		}),

		created() {
			this.setAduitUser(this.current_user.company_id)
		},

		computed: {
			...mapGetters(['current_user']),
			...mapGetters('brand', ['aduit_users',])
		},

		methods: {
			...mapActions('brand', ['setAduitUser'])
		}
	}
</script>